<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<title>select</title>
</head>
<body>
<select id="demo" style="display: none;">
	<option value="0">请选择</option>
	<option value="2">离开家</option>
	<option value="3">离开家</option>
	<option value="4">离开家</option>

</select>
<script type="text/javascript">
//第一种
var selectObj = document.getElementById('demo');
var index = selectObj.selectedIndex; // 选中索引
var optionObj = selectObj.options[0];
var text = selectObj.options[index].text; // 选中文本
var value = selectObj.options[index].value; // 选中值

// var list=new Array()
var map = new Array();
var list = new Array();
for (var i = 0; i < map.length-1; i++) {
	for(key in map[i]){
		list[i] = map[i][key];
	}
}
</script>
</body>
</html>